package com.ebelter.btlibrary.btble.ble.model;

/**
 * 创建时间: 2017/8/30.:
 * <p>
 * 作者:
 * <p>
 * 类作用:
 */

public class BleConfigure {
    /**** 蓝牙名称 ****/
    private String bleName;
    /**** 服务ID ****/
    private String serviceId;
    /**** 特征读ID ****/
    private String[] readId;
    /**** 特征写ID ***/
    private String writeId;
    /****蓝数据头，接收****/
    private byte dataHaderReceive = -1;
    /****数据头，发送****/
    private byte dataHeaderSend = -1;

    public BleConfigure() {
    }

    public BleConfigure(String bleName, String serviceId, String[] readId, String writeId) {
        this.bleName = bleName;
        this.serviceId = serviceId;
        this.readId = readId;
        this.writeId = writeId;
    }

    public String getBleName() {
        return bleName;
    }

    public void setBleName(String bleName) {
        this.bleName = bleName;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String[] getReadId() {
        return readId;
    }

    public void setReadId(String[] readId) {
        this.readId = readId;
    }

    public String getWriteId() {
        return writeId;
    }

    public void setWriteId(String writeId) {
        this.writeId = writeId;
    }

    public byte getDataHaderReceive() {
        return dataHaderReceive;
    }

    public void setDataHaderReceive(byte dataHaderReceive) {
        this.dataHaderReceive = dataHaderReceive;
    }

    public byte getDataHeaderSend() {
        return dataHeaderSend;
    }

    public void setDataHeaderSend(byte dataHeaderSend) {
        this.dataHeaderSend = dataHeaderSend;
    }


    @Override
    public String toString() {
        return "BleConfigure{" +
                "bleName='" + bleName + '\'' +
                ", serviceId='" + serviceId + '\'' +
                ", readId='" + readId + '\'' +
                ", writeId='" + writeId + '\'' +
                ", dataHaderReceive=" + Integer.toHexString(dataHaderReceive & 0xff) +
                ", dataHeaderSend=" + Integer.toHexString(dataHeaderSend & 0xff) +
                '}';
    }
}
